Random sample consensus